﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ViewEmployeeInformation.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.ViewEmployeeInformation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 190px;
        }
        .style3
        {
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
        <fieldset style="width: 800px; height: 600px;">
            <fieldset style="width: 200px; height: 100px;">
                <legend style="text-decoration: blink; color: purple;">Search By </legend>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Designation"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButton ID="designationRadioButton" runat="server" OnCheckedChanged="DesignationRadioButton_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:DropDownList ID="designationDropDownList" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="searchButton" runat="server" Text="Search" OnClick="searchButton_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="All"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButton ID="allRadioButton" runat="server" OnCheckedChanged="allRadioButton_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                        </td>
                        <td class="style3">
                            <asp:LinkButton ID="personalInformationSearchLinkButton" runat="server" OnClick="personalInformationSearchLinkButton_Click">Personally Search</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <div>
                <asp:GridView ID="employeeGridView" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="employeeGridView_SelectedIndexChanged"
                    CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="Id" OnRowDataBound="employeeGridView_RowDataBound">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                      <%--  <asp:BoundField DataField="PresentAddress" HeaderText="Present Address" ReadOnly="True"
                            SortExpression="PresentAddress" />
                        <asp:BoundField DataField="PermanentAddress" HeaderText="Permanent Address" ReadOnly="True"
                            SortExpression="PermanentAddress" />
                        <asp:BoundField DataField="ContactNumber" HeaderText="Contact No" ReadOnly="True"
                            SortExpression="ContactNumber" />
                        <asp:BoundField DataField="JoiningDate" HeaderText="Joining Date" SortExpression="JoiningDate" />--%>
                        <asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True" SortExpression="Name" />
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        <asp:BoundField DataField="ContactNumber" HeaderText="Contact No" 
                            SortExpression="ContactNumber" />
                        <asp:BoundField DataField="PresentAaddres" HeaderText="Present Aaddres" 
                            SortExpression="PresentAaddres" />
                        <asp:BoundField DataField="PermanentAaddres" HeaderText="Permanent Aaddres" 
                            SortExpression="PermanentAaddres" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:HyperLink runat="server" ID="HyperLinkEdit">Edit</asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F8FAFA" />
                    <SortedAscendingHeaderStyle BackColor="#246B61" />
                    <SortedDescendingCellStyle BackColor="#D4DFE1" />
                    <SortedDescendingHeaderStyle BackColor="#15524A" />
                </asp:GridView>
            </div>
        </fieldset>
    </div>
</asp:Content>
